package com.zhangchuchu.neohealth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhangchuchu.neohealth.entity.Community;
import com.zhangchuchu.neohealth.entity.DTO.CommunityDTO;
import com.zhangchuchu.neohealth.mapper.CommunityMapper;
import com.zhangchuchu.neohealth.service.CommunityService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Community)表服务实现类
 *
 * @author makejava
 * @since 2025-03-29 20:18:31
 */
@Service
public class CommunityServiceImpl extends ServiceImpl<CommunityMapper, Community> implements CommunityService {
    @Override
    public List<CommunityDTO> getCommunityWithUserAndComment(Long commentId, Long userId) {
        return this.baseMapper.getCommunityWithUserAndComment(commentId, userId);
    }

    @Override
    public List<CommunityDTO> getCommunity() {
        return this.baseMapper.getCommunity();
    }
}
